from django.db import models


# Create your models here.

class UserManager(models.Model):
    username = models.CharField(max_length=50)
    password = models.CharField(max_length=100)
    real_name = models.CharField(max_length=50)
    tel = models.CharField(max_length=11)
    birth = models.DateField()
    email = models.CharField(max_length=50)
    sex = models.BooleanField(default=True)
    avatar = models.CharField(max_length=255)
    state = models.BooleanField(default=False)
    create_time = models.DateTimeField()
    update_time = models.DateTimeField()
    delFlag = models.BooleanField(default=False)

    def __str__(self):
        return self.username
